package com.evan.kdl.test.stopwatch;

import org.springframework.util.StopWatch;

public class SpringStopWatchExample2 {

    public static void main(String[] args) throws InterruptedException {
        StopWatch sw = new StopWatch();
        sw.start("A");//setting a task name
        //long task simulation
        Thread.sleep(1000);
        sw.stop();
        System.out.println(sw.getLastTaskTimeMillis());
    }
}